import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'patient-';

export default {
    path: '/patient',
    name: 'patient',
    redirect: {
        name: `${pre}patientList/whole`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'detailed',
            name: `${pre}detailed`,
            meta: {
                ...meta,
                title: '患者详细'
            },
            component: () => import('@/pages/patient/detailed')
        },
        {
            path: 'patientList/whole',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '全部'
            },
            component: () => import('@/pages/patient/patientList/whole')
        },
        {
            path: 'patientList/arrived',
            name: `${pre}patientList`,
            meta: {
                ...meta,
                title: '已到'
            },
            component: () => import('@/pages/patient/patientList/arrived')
        },
        {
            path: 'patientList/preArrival',
            name: `${pre}patientList/preArrival`,
            meta: {
                ...meta,
                title: '预到'
            },
            component: () => import('@/pages/patient/patientList/preArrival')
        },
        {
            path: 'patientList/overdue',
            name: `${pre}patientList/overdue`,
            meta: {
                ...meta,
                title: '过期未到'
            },
            component: () => import('@/pages/patient/patientList/overdue')
        },
        {
            path: 'patientList/revision',
            name: `${pre}patientList/revision`,
            meta: {
                ...meta,
                title: '改约'
            },
            component: () => import('@/pages/patient/patientList/revision')
        },
        {
            path: 'returnVisit/list-need',
            name: `${pre}returnVisit/list-need`,
            meta: {
                ...meta,
                title: '医助回访'
            },
            component: () => import('@/pages/patient/returnVisit/list-need')
        },
        {
            path: 'anitRelapse',
            name: `${pre}anitRelapse`,
            meta: {
                ...meta,
                title: '抗复发列表'
            },
            component: () => import('@/pages/patient/anitRelapse')
        },
        {
            path: 'returnVisit/list-already',
            name: `${pre}returnVisit/list-already`,
            meta: {
                ...meta,
                title: '已回访'
            },
            component: () => import('@/pages/patient/returnVisit/list-already')
        },
        {
            path: 'returnVisit/list-overdue',
            name: `${pre}returnVisit/list-overdue`,
            meta: {
                ...meta,
                title: '过期未回访'
            },
            component: () => import('@/pages/patient/returnVisit/list-overdue')
        }
    ]
};
